


public class testmain {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Keyboard_simulator bs = new Keyboard_simulator();
		bs.SetForegroundWindow("Notepad++");
		bs.Keybd_event(bVk.VK_0, dwFlags.KEYEVENTF_EXTENDEDKEY);
//		bs.PostMessage("Notepad++", UINT.WM_KEYDOWN, bVk.VK_0, 0);

//		Mouse_simulator ms = new Mouse_simulator();
//		ms.Mouse_event(dwEvents.MOUSEEVENTF_RIGHTDOWN, 0, 0, 0);
//		ms.Mouse_event(dwEvents.MOUSEEVENTF_RIGHTUP, 0, 0, 0);
	}

}
